import axios from '@/utils/request'

import config from '@/common/config'

let base = config.getArcBasePath();


/**
 * arc_doc_send_target
 *1    默认只开放普通查询，所有查询，只要上传	 分页参数 {currentPage:当前页码从1开始,pageSize:每页记录数,total:总记录【数如果是0后台会自动计算总记录数非0不会自动计算】}，后台都会自动按分页查询 其它 api用到再打开，没用到的api请注释掉，
 *2 查询、新增、修改的参数格式  params={id:'主键 主键',targetType:'对象类型user用户/dept部门',targetId:'对象编号',targetName:'对象名称',authority:'read读/edit编辑/full完全控制',canDownload:'是否可下载',isReceive:'是否已接收',receiveDate:'接收时间',receiveDeptid:'接收部门',receiveUserid:'接收人编号',receiveUsername:'接收人姓名',receiveDeptName:'接收部门名称',docNo:'文档编号'}
 **/
 
//普通查询 条件之间and关系  
export const listDocSendTarget = params => { return axios.get(`${base}/mdp/arc/doc/docSendTarget/list`, { params: params }); };

//模糊查询arc_doc_send_target 条件之间or关系  
//export const listDocSendTargetKey = params => { return axios.get(`${base}/mdp/arc/doc/docSendTarget/listKey`, { params: params }); };

//删除一条arc_doc_send_target params={id:'主键 主键'}
export const delDocSendTarget = params => { return axios.post(`${base}/mdp/arc/doc/docSendTarget/del`,params); };

//批量删除arc_doc_send_target  params=[{id:'主键 主键'}]
export const batchDelDocSendTarget = params => { return axios.post(`${base}/mdp/arc/doc/docSendTarget/batchDel`, params); };

//修改一条arc_doc_send_target记录
export const editDocSendTarget = params => { return axios.post(`${base}/mdp/arc/doc/docSendTarget/edit`, params); };

//新增一条arc_doc_send_target
export const addDocSendTarget = params => { return axios.post(`${base}/mdp/arc/doc/docSendTarget/add`, params); };